const path = require("path")
const webpack = require("webpack")
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: "/data-v/",
  outputDir: "dist/",
  assetsDir: "static/",
  // webpack的基础配置
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery",
        "window.jQuery": "jquery",
      }),
    ],
    name: "app name",
    resolve: {
      alias: {
        "@": resolve("src"),
      },
    },
  },
  // 配置scss全局变量
  css: {
    loaderOptions: {
      sass: {
        // @为目录src的别名
        additionalData: `@import "@/styles/utils.scss";`,
      },
    },
  },
}

